package ewa.big.gameapi;

import java.io.Serializable;

/**
 * <b>Web Engineering - UE3</b>
 * <p>
 *
 * This class representing a field of the "Mensch aergere Dich nicht" game.
 * 
 * @version 1.00 (01.05.2012)
 */
public class Field implements Serializable {
    private static final long serialVersionUID = 1L;

    private int occupyingPlayer;
    
    /**
     * C'tor
     */
    public Field(){
        occupyingPlayer = -1;
    }
    
    /**
     * C'tor
     * 
     * @param occupyingPlayer    the player which is occupying the field
     */
    public Field(int occupyingPlayer){
        this.occupyingPlayer = occupyingPlayer;
    } // end C'tor
    
    /**
     * Get the player which is occupying the field.
     * 
     * @return the player which is occupying the field
     */
    public int getOccupyingPlayer(){
        return occupyingPlayer;
    } // end getOccupyingPlayer
    
    /**
     * Set the player that occupies the field.
     * 
     * @param player    the player that occupies the field
     */
    public void setOccupyingPlayer(int player){
        occupyingPlayer = player;
    } // end setOccupyingPlayer
    
} // end of class Field
